package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tanhua.dubbo.mappers.AnnouncementMapper;
import com.tanhua.model.domain.Announcement;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author Xiao
 * @version 1.0
 * @description
 * @date 2021/10/30
 */
@DubboService
public class AnnouncementApiImpl extends ServiceImpl<AnnouncementMapper, Announcement> implements AnnouncementApi{
    @Override
    public IPage<Announcement> getAnnouncements(Integer page, Integer pagesize) {
        return this.page(new Page<>(page, pagesize));
    }
}
